{% extends "genebase.html" %}

{% block content %}
<table cellspacing="0">
	<tr><td>geneid</td><td><a href="http://view.ncbi.nlm.nih.gov/gene/{{gene.geneid}}">{{gene.geneid}}</a></td></tr>
<tr><td>Name</td><td>{{gene.name}}</td></tr>
<tr><td>Full Name</td><td>{{gene.fullname}}</td></tr>
<tr><td>synonym</td><td>{{gene.synonym}}</td></tr>
<tr><td>chromosome</td><td>{{gene.chromosome}}</td></tr>
<tr><td>Description</td><td>{{gene.description}}</td></tr>
<tr><td>HGNC</td><td><a href="http://www.genenames.org/data/hgnc_data.php?hgnc_id={{gene.hgnc}}">{{gene.hgnc}}</a></td></tr>
<tr><td>Ensembl</td><td><a href="http://www.ensembl.org/Homo_sapiens/geneview?gene={{gene.ensembl}}">{{gene.ensembl}}</a></td></tr>
<tr><td>omim</td><td>
		{% for o in omim %}
		<a href="http://www.ncbi.nlm.nih.gov/entrez/dispomim.cgi?id={{o}}">{{o}}</a> 
		{% endfor %}
</td></tr>
<tr><td>Uniprot</td><td>
		{% for u in uniprot %}
		<a href="http://expasy.org/uniprot/{{u}}">{{u}}</a> 
		{% endfor %}
</td></tr>
</table>
<br/>
<b>subcellular location</b><br/>
  <table>
  {% for l in locations %}
  <tr>
     <td>{{l.loc}} </td>
  </tr>
  {% endfor %}
  </table> <br/>
<b>Diseases related with gene {{gene.name}}</b> <br/>
{% if morbid %}
  <table>
  {% for disease in morbid %}
  <tr>
     <td>{{disease.disorder}} </td>
  </tr>
  {% endfor %}
  </table> <br/>
{% else %}
   <p>No disease related with this gene</p>
{% endif %}
<br/>

<b>{{gene.name}} used as drug targets for diseases: </b><br/>
{% if dis_target %}
  <table>
  {% for disease in dis_target %}
  <tr>
     <td>{{disease.disease}} </td>
  </tr>
  {% endfor %}
  </table> <br/>
{% else %}
   <p>No disease</p>
{% endif %}
<br/>

<b>{{gene.name}} targeted by drugs: </b><br/>
{% if drugs %}
  <table>
  {% for drug in drugs %}
  <tr>
     <td>{{drug.drug}} </td>
  </tr>
  {% endfor %}
  </table> <br/>
{% else %}
   <p>No drugs targetd this gene</p>
{% endif %}
{% endblock %}
